home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
jpl_c.zip
/
LOG2.C
< prev
next >
Wrap
Text File
|
1986-05-18
|
640b
|
21 lines
/* 1.0 11-13-84 */
/************************************************************************
* Robert C. Tausworthe *
* Jet Propulsion Laboratory *
* Pasadena, CA 91009 1984 *
************************************************************************/
#include "mathcons.h"
/************************************************************************/
double
log2(x) /* return binary logarithm (base 2) of x. */
/*----------------------------------------------------------------------*/
double x;
{
double log();
return log(x) * LOG2e;
}